package com.xiaolin.designmode.factory.simple;

import com.xiaolin.designmode.factory.bean.Phone;

/**
 * @ClassName SimpleFactoryTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/10/29
 * @Version 1.0
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        Phone xiaomi = SimpleFactory.makePhone("xiaomi");
        Phone huawei = SimpleFactory.makePhone("huawei");
        if (xiaomi != null) {
            xiaomi.name();
        }
        if (huawei != null) {
            huawei.name();
        }
    }
}
